<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .img {
            width: 200px;
            height: 200px;
            margin: 0 auto;
            text-align: center;
            line-height: 200px;
            background-color: #d01c1c;
            transition: all 5s;
        }


        .img:hover {
            background: linear-gradient(to bottom, #30e3d4 59%, #0676d8, 41%);
            margin-left: 20px;
        }

        .progress {
            width: 200px;
            height: 20px;
            background-color: #d01c1c;
            position: relative;
            top: 200px;
            left: 50%;
            transform: translateX(-50%);
            transition: width 5s;
        }

        .progress:hover {
            background: linear-gradient(to bottom, #30e3d4 59%, #0676d8, 41%);
            /* background-color: #0ec214; */
            /* transform: translate(50%, 0); */

        }
    </style>
</head>

<body>
    <div>
        <div class="img">

        </div>
        <div class="progress"></div>
    </div>
</body>

</html>